<form class="layui-form layui-form-pane" id="FormBizFavorContactsEdit" lay-filter="FormBizFavorContactsEdit" action="/biz/favor/contacts/edit">
    <input type="hidden" id="id" name="id" th:value="${entity.id}">
    <input type="hidden" id="groupId" name="groupId" th:value="${entity.groupId}">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','日期(*)','favorDay','layui-col-md12',128,'required',${entity.favorDay})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','姓名(*)','favorName','layui-col-md6',128,'required',${entity.favorName})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','关系(*)','favorRelation','layui-col-md6',128,'required',${entity.favorRelation})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','收入','income','layui-col-md6',32,'',${entity.income})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','支出','expenditure','layui-col-md6',32,'',${entity.expenditure})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','标签','favorTags','layui-col-md6',128,'',${entity.favorTags})"></div>
            <div th:replace="common/plugin :: pa-form-textarea('text','备注','favorDesc','layui-col-md12',5,'',${entity.favorDesc})"></div>
            <!--            <div th:replace="common/plugin :: pa-form-input('text','回礼日期(*)','returnDay','layui-col-md6',128,'required',${entity.returnDay})"></div>-->
            <!--            <div th:replace="common/plugin :: pa-form-input('text','回礼金额(*)','returnAmount','layui-col-md6',32,'required',${entity.returnAmount})"></div>-->
            <!--            <div th:replace="common/plugin :: pa-form-input('text','回礼备注(*)','returnDesc','layui-col-md6',512,'required',${entity.returnDesc})"></div>-->
        </div>
    </div>
</form>
<script>
    layui.use(["jquery", "laydate", 'form'], function () {
        let laydate = layui.laydate;
        let form = layui.form;
        let $ = layui.jquery;
        form.render();
        laydate.render({
            elem: "#FormBizFavorContactsEdit .layui-input[name=favorDay]",
            ready: function () {
                $(".laydate-month-list").dblclick(function () {
                    $(".laydate-btns-confirm").click();
                });
            }
        });
    });
</script>